'use strict'
const fs = require('fs');
class addSti {
    constructor() {
        this.param = '/'
    }
    //创建资源
    async post(c) {
        try {
            var data = c;
            console.log(data);
            // var path = '/home/ubuntu/sucaiku/stickers/jojo1.jpg'
            // var writable = fs.createWriteStream(path);
            // writable.write(data);
            // writable.end();
            return c.send('success')
        }
        catch (err) {
            return c.status(500).send('error');
        }
    }
}

module.exports = addSti